﻿using guosange.DAL;
using guosange.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace guosange.BLL
{
    public class UserBLL
    {
        private UserDAL _userDAL = new UserDAL();
        public MethodResult Login(string username, string password)
        {
            return _userDAL.Login(username, password);
        }

        public MethodResult Add(T_User t_user)
        {
            return _userDAL.Add(t_user);
        }

        public MethodResult Update(T_User t_user)
        {
            return _userDAL.Update(t_user);
        }

        public MethodResult Delete(string userid)
        {
            return _userDAL.Delete(userid);
        }
    }
}
